package com.example.core.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.core.dao.AttendanceDao;
import com.example.core.entity.Attendance;
import com.example.core.entity.EmployeePO;
import com.example.core.service.AttendanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
public class AttendanceServiceImpl extends ServiceImpl<AttendanceDao, Attendance> implements AttendanceService {

    @Autowired
    private AttendanceDao attendanceDao;


    /**
     * 查询所有员工
     *
     * @return
     */
    @Override
    @Transactional(readOnly = true)
    public List<Map<String,Object>> querycolumList() {
        List<Map<String,Object>> querycolumList = attendanceDao.querycolumList();
        return querycolumList;
    }

    @Override
    @Transactional(readOnly = true)
    public List queryDingdingList(EmployeePO employeePO) {
        return attendanceDao.queryDingdingList(employeePO);
    }

    @Override
    public void insertLog(Map<String, String> map) {
        this.attendanceDao.insertLog(map);
    }
}
